angular.module("farfar.route",[])
.config(function($stateProvider, $urlRouterProvider,$httpProvider,$showdownProvider) {
    $showdownProvider.setOption("headerLevelStart", 3);
    $stateProvider
    /**
     * 登录
     */
         .state('login', {
            url: '/login',
            templateUrl: 'html/login.html',
            controller: "LoginCtrl"
        })
        /**
         * 注册
         */
        .state('regist', {
            url: '/regist',
            templateUrl: 'html/regist.html',
            controller: "RegistCtrl"
        })
          .state('test', {
            url: '/test',
            templateUrl: 'html/test.html',
            controller: "TestCtrl"
        })
        .state('app', {
            url: '/app',
             abstract: true,
            templateUrl: 'html/app.html'
        })
        .state('app.home', {
            url: '/home',
             views: {
                // 'leftContent': {
                //     templateUrl: 'html/leftmenu.html',
                   
                // },
                'rightContent': {
                    templateUrl: 'html/home.html',
                    controller: "HomeCtrl"
                },
                // 'topContent': {
                //     templateUrl: 'html/top.html',
                // },
            }
            
        })
        .state('app.objMana', {
            url: '/objMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/objMana.html',
                    controller: "ObjManaCtrl"
                },
            }
        })
         .state('app.objAdd', {
            url: '/objAdd',
             views: {
                'rightContent': {
                    templateUrl: 'html/objAdd.html',
                    controller: "ObjAddCtrl"
                },
            }
        })
        .state('app.objEdi', {
            url: '/objEdi/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/objEdi.html',
                    controller: "ObjEdiCtrl"
                },
            }
        })
        .state('app.wayMana', {
            url: '/wayMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/wayMana.html',
                    controller: "wayManaCtrl"
                },
            }
        })
        .state('app.wayAdd', {
            url: '/wayAdd',
             views: {
                'rightContent': {
                    templateUrl: 'html/wayAdd.html',
                    controller: "wayAddCtrl"
                },
            }
        })
        .state('app.wayEdi', {
            url: '/wayEdi/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/wayEdi.html',
                    controller: "wayEdiCtrl"
                },
            }
        })
         .state('app.waySee', {
            url: '/waySee/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/waySee.html',
                    controller: "waySeeCtrl"
                },
            }
        })
        .state('app.ordMana', {
            url: '/ordMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/ordMana.html',
                    controller: "ordManaCtrl"
                },
            }
        })
        .state('app.ordSee', {
            url: '/ordSee/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/ordSee.html',
                    controller: "ordSeeCtrl"
                },
            }
        })
        .state('app.userMana', {
            url: '/userMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/userMana.html',
                    controller: "userManaCtrl"
                },
            }
        })
        .state('app.broadcast', {
            url: '/broadcast',
             views: {
                'rightContent': {
                    templateUrl: 'html/broadcast.html',
                    controller: "broadcastCtrl"
                },
            }
        })
        
        .state('app.userSee', {
            url: '/userSee/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/userSee.html',
                    controller: "userSeeCtrl"
                },
            }
        })
        .state('app.groupMana', {
            url: '/groupMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/groupMana.html',
                    controller: "groupManaCtrl"
                },
            }
        })
        .state('app.groupAdd', {
            url: '/groupAdd',
             views: {
                'rightContent': {
                    templateUrl: 'html/groupAdd.html',
                    controller: "groupAddCtrl"
                },
            }
        })
        .state('app.groupEdi', {
            url: '/groupEdi/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/groupEdi.html',
                    controller: "groupEditCtrl"
                },
            }
        })
        .state('app.groupSee', {
            url: '/groupSee/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/groupSee.html',
                    controller: "groupSeeCtrl"
                },
            }
        })
        .state('app.set', {
            url: '/set',
             views: {
                'rightContent': {
                    templateUrl: 'html/set.html',
                    controller: "setCtrl"
                },
            }
        })
        .state('app.msgMana', {
            url: '/msgMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/msgMana.html',
                    controller: "msgManaCtrl"
                },
            }
        })
        .state('app.msgSee', {
            url: '/msgSee/:id',
             views: {
                'rightContent': {
                    templateUrl: 'html/msgSee.html',
                    controller: "msgSeeCtrl"
                },
            }
        })
        .state('app.assMana', {
            url: '/assMana',
             views: {
                'rightContent': {
                    templateUrl: 'html/assMana.html',
                    controller: "assManaCtrl"
                },
            }
        });
        $urlRouterProvider.otherwise('/login');
});